﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Kaidou.Model;
using Kaidou.Bll;
using Kaidou.Util;

public partial class seal_seal_order_represen_conf : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginModel loginModel = (LoginModel)Session["loginModel"];
        if (loginModel == null)
        {
            Response.Redirect("../login.aspx");
        }

        if (loginModel.isKumiaiin() && sessioncontrol.control())
        {
            Response.Redirect("../control.aspx");
        }
    }

    protected void insertOrder(object sender, EventArgs e)
    {
        try
        {
            LoginModel loginModel = (LoginModel)Session["loginModel"];
            Order order = (Order)Session["order"];
            TRN_JuchuManager tjm = new TRN_JuchuManager();
            tjm.insertOrder_Represen(order, Resources.Resource.ResourceManager, loginModel);
            
        }
        catch (Exception ee)
        {
            LogManager.error("seal_seal_order_conf " + ee.Message);
            return;
        }

        Response.Redirect("seal_order_represen.aspx");
    }
}
